package com.imooc.passbook.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * User View Object
 * @author:lzq
 * @date: 2018/8/30 22:00
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class User {

    //用户id
    private Long id;

    //用户基本信息
    private BaseInfo baseInfo;

    //用户其他信息
    private OtherInfo otherInfo;

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class BaseInfo{
        private String name;
        private int age;
        private String sex;
    }

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class OtherInfo{
        private String phone;
        private String address;
    }

}
